/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designpatternspart2.decoratorPattern;

/**
 *
 * @author Dwayne
 */
public class LegDecorator extends AnimalDecorator {

    public LegDecorator(Animal animal) {
        super(animal);
    }

    
    @Override
    public String describe() {
       animal.describe();
       System.out.println("I have legs");
       return dance();
    }
    
    public String dance(){
        System.out.println("I can dance");
        return "I can dance";
    }
    
}
